<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>一个JavaScript语句</title>
</head>
<body>
<h1>
    <center>
        我的Web页面
    </center>
</h1>
<hr>
<p id="dome">一个段落</p>
<div id="myDiv">一个DIV.</div>
<script>
    document.getElementById("dome").innerText = "你好！ Dolly!";
    document.getElementById("myDiv").innerText = "你最近怎么样？";
</script>
</body>
</html>